#pragma once

class DialogProto abstract
{
protected:
	Dialog* m_dialog;

public:
	DialogProto() { m_dialog = 0; }
	operator Dialog*() { return m_dialog; }
	void ShowDialog()
	{
		if(m_dialog)
			m_dialog->m_visible = true;
	}
	void HideDialog()
	{
		if(m_dialog)
			m_dialog->m_visible = false;
	}
};